package com.sunjob.common.exception;

import lombok.Data;
import lombok.ToString;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-07-23 16:08
 * 自定义全局异常
 */

public class MROException extends RuntimeException {
    // 错误码
    private Integer code;

    public MROException(String message, Integer code) {
        super(message);
        this.code = code;
    }
    @Override
    public String toString(){
        return super.toString()+",code:"+code;
    }
}
